package personal.lijun.skeleton.web.controllers;

import java.util.function.Function;

/**
 * @Auther: lijun@sstcsoft.com
 * @Date: 2019/9/17 15:47
 */
public class ControllerHelper {
    /**
     * Redirect helper
     * Usage:
     *      ControllerHelper.redirect() -> "/";
     *
     * Result:
     *      "redirect:/"
     *
     * @param path for URI
     * @return Redirect URI path
     */
//    @FunctionalInterface
    public static Function<String, String> redirect = (path)-> "redirect:" + path;
}
